package edu.base.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import edu.base.model.CatDetail;
import edu.base.model.Users;
import edu.base.service.CatDetailService;
import edu.base.service.UsersService;
import edu.base.util.JsonResults;

@RequestMapping("/demo")
@Controller
public class DemoController {

	@Autowired
	UsersService userService;
	@Autowired
	CatDetailService catDetailService;
	
	
	@RequestMapping("index")
	@ResponseBody
	public JsonResults index() {
		JsonResults res = new JsonResults();
		res.setResult_msg("DEMO");
		List<CatDetail> lst = catDetailService.find(12, 1, false, null);
		res.setResult_msg("size:" + lst.size());
		return res;
	}
	
}
